|
|
> Also it might be quicker to use CSG objects instead of triangles. I'm not
sure
> how pov implements triangle meshes (I never use them). You could just do
the
> intersection of 4 planes. In fact I just worked out the maths so I can't
resist
> putting it here :)
>
> #declare Tetrahedron =
> intersection {
> plane { <1,1,1>, 1 }
> plane { <-1,1,-1>, 1 }
> plane { <1,-1,-1>, 1 }
> plane { <-1,-1,1>, 1 }
> }
>
> That should do it.
> Though it's gone midnight and I might have made a glaring error :)
Isn't that how the tetrahedron is defined in shapes.inc? I didn't check it,
but I believe all geometrical solids are defined using intersections of
planes, so all you need is #include "shapes.inc" - all this math for nothing
;-)
Zero
Post a reply to this message
|
|